package adv3;

public class Wrap3 {
	// &&,|| ! ^
	public static void main(String[] args) {
		int i = 10000;
		String str = Integer.toHexString(i);
		System.out.println(str);
		int i1 = 0X16;// 16进制
		System.out.println(i1);
		int i2 = 016;// 8进制
		System.out.println(i2);
		int i3 = 0b10101010;
		System.out.println(i3);
		// 求他们的二进制
		// 23:
		// -11:
		// 数学的位运算符，&,| ,~ , ^
		int a = 23, b = 11;
		int c = a & b;
		System.out.println("c=" + c);
		int d = a | b;
		System.out.println("d=" + d);
		int e = a ^ b;
		System.out.println("e=" + e);
		int f = ~b;
		System.out.println("f=" + f);

		Double d1 = new Double("1000000");
		int i4 = d1.intValue();
		System.out.println(i4);
		byte bb = d1.byteValue();
		System.out.println("b=" + bb);
	}

}
